{include file="public:header" /}
<!--回答列表-->
<div class="pad_lr_10" >
    <div class="J_tablelist table_list" data-acturi="{:url('ajaxEdit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left" width="200">问题标题</th>
                <th>回答内容</th>
                <th>回答人</th>
                <th width=120>回答时间</th>
                <th width="40">状态</th>
                <th width="150">操作</th>
            </tr>
        </thead>
        <tbody>
            {volist name="list" id="val"}
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td align="left">{$val.ask.title}</td>
                <td align="center">{$val.content}</td>
                <td align="center">{$val.user_name}</td>
                <td align="center">{$val.create_time|date='Y-m-d H:i:s',###}</td>
                <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__IMG__/toggle_{if condition="$val.status eq 0"}disabled{else/}enabled{/if}.gif" /></td>
                <td align="center">
                    {:rights($options,$val['id'],$val['content'],$menuid)}</td>
            </tr>
            {/volist}
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:url('delete')}" data-name="id" data-msg="确定要删除该条记录么?" value="删除" />
        <div id="pages">{$pages}</div>
    </div>
    </div>
</div>
{include file="public:footer" /}

</body>
</html>
